home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / System 7 / M / Menu Events 1.2.sit / Menu Events 1.2 / Menu Events Help.rsrc / STR#_1025.txt < prev    next >
Encoding:
Text File  |  1994-10-17  |  3.6 KB  |  157 lines

  1. 
  2.  
  3. 
  4.  
  5. 
  6.  
  7. ‚àû
  8.  
  9. ‚àû
  10.  
  11. åPurpose
  12.  
  13. 
  14.  
  15. 
  16.  
  17. The big trend these days in Macintosh software is toward more
  18.  
  19. integration between applications.  Increasingly, developers achieve this
  20.  
  21. integration by using the Apple event interfaces of other applications, and
  22.  
  23. by defining their own suites of Apple events for other applications to use.
  24.  
  25. 
  26.  
  27. 
  28.  
  29. Because there are far more clients than servers in the world of Apple
  30.  
  31. events, there is a large number of ‚Äúhigh-level-event-aware‚Äù applications
  32.  
  33. which support program linking, using Apple events to control other
  34.  
  35. applications (or just to be modern), but not offering any interface of their
  36.  
  37. own.  Apart from the Required suite mandated by Finder, the functionality
  38.  
  39. of these applications is beyond the reach of scripting utilities and other
  40.  
  41. programs that send Apple events.  Menu Events is a utility which opens up
  42.  
  43. this demi-monde of dabblers and dilettantes to the glories of Apple event
  44.  
  45. controllability.  Applications which are by their nature only
  46.  
  47. high-level-event-aware become scriptable and recordable Apple event
  48.  
  49. servers.
  50.  
  51. 
  52.  
  53. If you regard an application‚Äôs collective user interface in terms of a set
  54.  
  55. of available functions, then take subsets according to how the user can
  56.  
  57. access these functions (Command-key combination, button click, menus,
  58.  
  59. and so on), you will usually find that the subset for menus is largest.  This
  60.  
  61. is because menus are intended as a baseline for the user interface;
  62.  
  63. however else you can do something, you should be able to do it with menus
  64.  
  65. as well.  Often a function is not available in a certain mode, but a menu
  66.  
  67. selection will shift the application into that mode, then another will access
  68.  
  69. the function.  This conformity is an asset of the Macintosh operating
  70.  
  71. system which can be exploited to offer a fairly general means of
  72.  
  73. controlling other applications.
  74.  
  75. 
  76.  
  77. 
  78.  
  79. 
  80.  
  81. 
  82.  
  83. ⌃
  84.  
  85. ⌃
  86.  
  87. √•Who Can Use Menu Events?
  88.  
  89. 
  90.  
  91. 
  92.  
  93. You do not need AppleScript, or any other optional software package, for
  94.  
  95. Menu Events to work.  It only requires System 7.
  96.  
  97. 
  98.  
  99. 
  100.  
  101. However, it has no user interface of its own.  It only enables programs to
  102.  
  103. do something they would not otherwise be able to do, namely, invoke
  104.  
  105. another application‚Äôs menu commands.
  106.  
  107. 
  108.  
  109. Any program you write, or any application which lets you compose and
  110.  
  111. send Apple events (such as a general scripting utility, or Maybe, part of
  112.  
  113. AWOL Utilities), can send a Menu event to any suitably modern application
  114.  
  115. and hope for a response.  Whether or not a particular application
  116.  
  117. cooperates depends on how it was programmed, but any application
  118.  
  119. programmed according to the published instructions of Apple Computer
  120.  
  121. will cooperate, with a bit of coaxing.
  122.  
  123. See the section entitled ‚ÄúLimitations‚Äù for more information.
  124.  
  125. 
  126.  
  127. Menu events can be received from any machine on the AppleTalk network,
  128.  
  129. subject to the usual Users & Groups program linking permission scheme.
  130.  
  131. This allows you to use Menu events to control applications from a remote
  132.  
  133. location.
  134.  
  135. 
  136.  
  137. If you have AppleScript, you should place the ‚ÄúMenu Events Scripting
  138.  
  139. Addition‚Äù file in your ‚ÄúScripting Additions‚Äù folder.  This will allow you
  140.  
  141. to use Menu events in your scripts.  ‚ÄúMenu Events Sample Script‚Äù shows
  142.  
  143. the sort of thing you can do with the scripting addition file installed.
  144.  
  145. Before writing a script to control a target application, you should try
  146.  
  147. recording its menu actions using your script editor.  If the target
  148.  
  149. application supports program linking, and the Caps Lock key is down,
  150.  
  151. these actions will be recorded as Menu Events script commands.
  152.  
  153. 
  154.  
  155. 
  156.  
  157.